package metis.lab.hygeia;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;

import metis.lab.hygeia.resources.AccountResource;

public class HygeiaRestletMain extends Application{
	/**
	 * Creates a root Restlet that will receive all incoming calls.
	 */
	@Override
	public synchronized Restlet createRoot() {
		Router router = new Router(getContext());
		
		router.attach("/medikidz/accounts/{account}", AccountResource.class);
		router.attach("/medikidz/accounts", AccountResource.class);
		return router;
	}
}
